package day04;

import java.util.Scanner;

public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
       /** System.out.println("输入成绩");
        int command = scanner.nextInt();
        System.out.println("输入年龄");
        int age = scanner.nextInt();
        System.out.println("商品价格为");
        double price = scanner.nextDouble();
        System.out.println("成绩为"+command+"年龄为"+age+"价格为"+price);**/

        System.out.println("请选择功能： 1.存款 2.取款 3.转账 4.退出");
        int command = scanner.nextInt();
        switch (command){
            case 1:
                System.out.println("存款业务");
                break;
            case 2:
                System.out.println("取款业务");
                break;
            case 3:
                System.out.println("转账业务");
                break;
            case 4:
                System.out.println("退出");
                break;
            default:
                System.out.println("输入错误");
        }


        if (command==1){
            System.out.println("存款业务");
        }else if (command == 2){
            System.out.println("取款业务");
        }else if (command == 3){
            System.out.println("转账业务");
        }else if (command == 4){
            System.out.println("退出");
        }else {
            System.out.println("输入错误");
        }


    }
}
